export default function LoginApi() {
    let _u = uni.$u
    return {
        authPass: (params: any) => {
            return _u.post('/merchant/merchant-account/loginMerchantMerchantAccount', params, {
                useMask: true
            })
        },
        authToken: (params: any) => {
            return _u.post('/merchant/merchant-account/loginByTokenMerchant', params, {
                useMask: true
            })
        },
        authUpdatePass: (params: any) => {
            return _u.post('/merchant/forgetPassword', params, {
                useMask: true
            })
        },
        authPhone: (params: any) => {
            return _u.post('/merchant/merchant-account/loginMerchantMerchantAccountByPhone', params, {
                useMask: true
            })
        },
        authLogout: () => {
            return _u.post('/merchant/merchant-account/logoutMerchant')
        }
    }
}
